<?php
class Agent_AccountController extends Zend_Controller_Action
{
    public function init ()
    {
    	$authData = Zend_Auth::getInstance()->getStorage()->read();
		if (is_array($authData) and $authData['identity'] != 'anon' and strtolower($authData['userType']) == 'agnt'){
			$_SESSION['agent_reg_id'] = $authData['identity']; 
        } 
    }
    public function indexAction ()
    {}
    public function networkAction ()
    {
        $agent = new Reale_Model_Users_Agent(array('agent_reg_id'=>$_SESSION['agent_reg_id']));
        $netacc = $agent->networkAccount(NULL,true);
        $this->view->assign('netacc', $netacc);
    }
    public function businessAction ()
    {}
    public function awardsAction ()
    {}
}